package com;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class T5 {
    static public void main(String[] argv) {
        Calendar call = Calendar.getInstance();
        call.setFirstDayOfWeek(Calendar.MONDAY);

        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");

        try {
//            Date date1 = sdf.parse("20191229");

            Date date1 = sdf.parse("20200329");
            call.setTime(date1);

            System.out.println(call.get(Calendar.WEEK_OF_YEAR));
        } catch (ParseException e) {
            e.printStackTrace();
        }

    }
}
